package mx.messaging.events;

extern class ChannelEvent extends flash.events.Event {
	var channel : mx.messaging.Channel;
	var channelId(default,null) : String;
	var connected : Bool;
	var reconnecting : Bool;
	var rejected : Bool;
	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?channel : mx.messaging.Channel, ?reconnecting : Bool, ?rejected : Bool, ?connected : Bool) : Void;
	static var CONNECT : String;
	static var DISCONNECT : String;
	static function createEvent(type : String, ?channel : mx.messaging.Channel, ?reconnecting : Bool, ?rejected : Bool, ?connected : Bool) : ChannelEvent;
}
